package xyz.jangle.date;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *  每3分钟打印1次，总共打印480张
 * @author Administrator
 *
 */
public class TestM {

	public static void main(String[] args) {
		
		String printTime = getPrintTime(1);
		System.out.println(printTime);

	}
	
	
	private static String getPrintTime(int printNum) {
		Date date = new Date();
		long time = date.getTime();
		long mod = time % (24*3600*1000);
		long zero = time - mod;
		
		long now = zero + printNum*180*1000;
		Date date2 = new Date(now);
		SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
		String string = format.format(date2);
		return string;
	}

}
